class Model(object):
	"""
	Basic class for Model
	trainingSet 存放训练集
	__sampleToPredict 存放某次要预测的样本集
	__predictResult 存放对应样本集__sampleToPredict在目前模型下的预测结果
	__realResult 存放对应样本集__sampleToPredict实际的预测结果

	"""
	trainingSet=None
	__sampleToPredict=None
	__predictResult=None
	__realResult=None

	def __init__(self,trainingSet=None):
		print("提示：数据被送入以前应当经过url解码...")
		if trainingSet!=None:
			self.trainingSet=trainingSet
		self.__sampleToPredict=[]
		self.__predictResult=[]
		self.__realResult=[]
		

	def resetTrainingSet(self,trainingSet=None):
		"重置训练集，默认置空"
		self.trainingSet=trainingSet

	def train(self):
		pass
	def predict(self):
		pass

	def getSampleToPredict(self):
		return self.__sampleToPredict.copy()

	def setSampleToPredict(self,SampleToPredict):
		if SampleToPredict!=None and isinstance(SampleToPredict,list):
			self.__sampleToPredict=SampleToPredict
		else:
			pass

	def getPredictResult(self):
		return self.__predictResult.copy()

	def setPredictResult(self,predictResult):
		if predictResult!=None and isinstance(predictResult,list):
			self.__predictResult=predictResult
		else:
			pass

	def getRealResult(self):
		return self.__realResult.copy()

	def setRealResult(self,realResult):
		if realResult!=None and isinstance(realResult,list):
			self.__realResult=realResult
		else:
			pass

	def getTrainingSet(self):
		return self.trainingSet

	def devTest(self):
		print("Success!")
